# 作业
# 1.
num = input()
if num % 3 == 0 and num % 7 == 0:
    print(num, '能被整除')
else:
    print(num, '不能被整除')
# 2.
num = 7
if not num % 21 == 0 and (num % 3 == 0 or num % 7 == 0):
    print(num, '能被3或者7整除')
else:
    print(num, '不能被整除或同时被3或7整除')
# 3.
value = input('请输入年：')
year = int(value)
if year % 400 == 0 or year % 4 == 0 and year % 100 != 0:
    print(year, '是闰年')
else:
    print(year, '不是闰年')
# 4.
s = 15000
h = s // 3600
m = s % 3600 // 60
s = s % 60
print('今天上课时间：{}时{}分{}秒'.format(h, m, s))
# 5.
h = float(input('请输入身高：单位m'))
w = float(input('请输入体重：单位kg'))
avg2 = w / h**2
print(avg2)
if 18.5 <= avg2 <= 24.9:
    print(avg2,'身材正常')
else:
    print('身材不正常')
# 6.
print(0x13 & 0x17)
print(0x13 | 0x17)
print(0x13 ^ 0x17)
print(12&13)
